/* eslint-disable prettier/prettier */

import fetch from "node-fetch";
import { generate } from "openapi-typescript-codegen";

(async () => {
  try {
    await generate({
      input: "http://localhost:8101/api/user/v2/api-docs?group=default",
      output: "./generated",
    });
  } catch (error) {
    console.error(error);
  }
})();
